package com.qf.smartplatform.mapper;

import com.qf.smartplatform.pojo.SysRole;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

import java.util.List;

/*** @author Tgb
 * @version V1.0
 * @Project smartplatform
 * @Package com.qf.smartplatform.mapper
 * @Description:
 * @Date 2022/9/12 21:27
 */
public interface RoleMapper {
    void addRole(SysRole sysRole);
    @Select("select * from sys_role")
    List<SysRole> findALl();
    @Select("select * from sys_role where role_id=#{id}")
    SysRole findById(Long id);
    @Delete("delete from sys_role where role_id = #{id}")
    int deleteById(Long id);
    int updateRole(SysRole sysRole);

}
